package com.qbao.newim.network;

import android.util.Log;

/**
 * Created by shiyunjie on 17/3/1.
 */

public class JniNetCallBack implements IProtocolCallBack
{
    private IProtocolCallBack net_center = null;
    public void SetCallBack(IProtocolCallBack callback)
    {
        net_center = this;
    }

    @Override
    public int OnRecvData(int packet_id, int socket, byte[] buffer, int buf_len)
    {
        Log.i("OnRecvData", "======1");
        return 0;
    }

    @Override
    public int OnError(int err_type)
    {
        Log.i("OnError", "======1");
        return 0;
    }

    @Override
    public int OnClose(int socket, boolean client_closed)
    {
        Log.i("OnClose", "======1");
        return 0;
    }

    @Override
    public int OnConnected(int socket)
    {
        Log.i("OnConnected", "======1");
        return 0;
    }

    @Override
    public int OnConnectFailure(int socket)
    {
        Log.i("OnConnectFailure", "======1");
        return 0;
    }
}
